package Model

import (
	"time"
)

// 返回报表
type ResultDepartmentTransfer struct {
	// No                     int    `json:"no" form:"no"`
	OriginDepartmentName string `json:"origin_department_name" form:"origin_department_name"`
	NewDepartmentName      string `json:"new_department_name" form:"new_department_name"`
	Name                   string `json:"name" form:"name"`
	Sex                    string `json:"sex" form:"sex"`
	TransferDate           string `json:"transfer_date" form:"transfer_date"`
	ReasonsForTransfer     string `json:"reasons_for_transfer" form:"reasons_for_transfer"`
}

// 添加
type NewDepartmentTransfer struct {
	Id                 string `form:"id" json:"id"`
	Name               string `json:"name" form:"name"`
	NewDepartmentName  string `form:"new_department_name" json:"new_department_name"`   //新部门编号
	NewPostName        int    `form:"new_post_name" json:"new_post_name"`               //新岗位编号
	TransferDate       string `form:"transfer_date" json:"transfer_date"`               //调动日期
	ReasonsForTransfer string `form:"reasons_for_transfer" json:"reasons_for_transfer"` //调动原因
}

// 返回查询
type ReturnDepartmentTransfer struct { //部门调动编号
	Id                     string `form:"id" json:"id"` //员工编号
	Name                   string `json:"name" form:"name"`
	Sex                    string `json:"sex" form:"sex"`
	OriginDepartmentName string `form:"origin_department_name" json:"origin_department_name"` //原部门编号
	NewDepartmentName      string `form:"new_department_name" json:"new_department_name"`           //新部门编号
	TransferDate           string `form:"transfer_date" json:"transfer_date"`                       //调动日期
	ReasonsForTransfer     string `form:"reasons_for_transfer" json:"reasons_for_transfer"`         //调动原因
}

/*部门调动员工表*/
type DepartmentTransferEmployee struct {
	TransferId               int       `json:"transfer_id" form:"transfer_id" gorm:"primaryKey"`             //部门调动编号
	Id                       string    `form:"id" json:"id"`                                                 //员工编号
	OriginDepartmentNumber int       `form:"origin_department_number" json:"origin_department_number"` //原部门编号
	NewDepartmentNumber      int       `form:"new_department_number" json:"new_department_number"`           //新部门编号
	OriginPostNumber       int       `form:"origin_post_number" json:"origin_post_number"`             //原岗位编号
	NewPostNumber            int       `form:"new_post_number" json:"new_post_number"`                       //新岗位编号
	TransferDate             time.Time `form:"transfer_date" json:"transfer_date"`                           //调动日期
	ReasonsForTransfer       string    `form:"reasons_for_transfer" json:"reasons_for_transfer"`             //调动原因
}
